﻿using Microsoft.Win32;
using System.Windows;
using 充电桩上位机.ViewModel;

namespace 充电桩上位机;

/// <summary>
/// Interaction logic for MainWindow.xaml
/// </summary>
public partial class MainWindow : Window
{
    public MainWindow()
    {
        InitializeComponent();
        WindowState = WindowState.Maximized;
        DataContext = new MainWindowViewModel();
    }

    private void DockPanel_MouseMove(object sender, System.Windows.Input.MouseEventArgs e)
    {
        Application.Current.Dispatcher.InvokeAsync(delegate
        {
            if (e.LeftButton == System.Windows.Input.MouseButtonState.Pressed)
                DragMove();
        });
    }
}